// ============================== 导入依赖 ============================== //

// ============================== 导出视频工具 ============================== //

export default {
  /**
   * 视频上传
   *
   * @param {File} file 文件
   * @param {String} folder 目录
   * @param {String} business 业务
   *
   * @returns {String} 视频路径
   */
  async videoUpload(file, folder = 'video', business = 'public') {
    this.loading()

    return new Promise((resolve) => {
      setTimeout(() => {
        resolve('https://player.alicdn.com/video/editor.mp4')
        this.unloading()
      }, 300)
    })
  },
}
